﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Saliss.Master" AutoEventWireup="true"
    CodeBehind="Settings.aspx.cs" Inherits="Googler.Web.Settings" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="direction: rtl">
        <asp:Label runat="server" ID="lblMessage" Visible="false" EnableViewState="false" style="color:red;font-size:12px"/>
        <table style="direction: rtl" runat="server" id="tblSettings">
            <tr>
                <td>
                    <asp:Label ID="lblKeyword" runat="server" Text="كلمة البحث"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="btnAdd" PostBackUrl="~/Settings.aspx" runat="server" Text="إضافة" OnClick="btnAdd_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:GridView ID="gvKeywords" runat="server" AutoGenerateColumns="false" OnRowCommand="gvKeywords_RowCommand"
                        Width="100%">
                        <Columns>
                            <asp:TemplateField HeaderStyle-Width="35px">
                                <ItemTemplate>
                                    <asp:LinkButton Style="color: Blue" Text="حذف" runat="server" OnClientClick="return confirm('هل أنت متأكد من أنك تريد حذف هذه الكلمة؟');"
                                        CommandName="DeleteKeyword" CommandArgument='<%#Eval("ID") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <%#Eval("Name") %>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <AlternatingRowStyle CssClass="gridItemAlternative" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="3">&nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label ID="Label1" runat="server" Text="جلب الاخبار كل"></asp:Label>
                    <asp:TextBox ID="txtMinutes" runat="server"></asp:TextBox>دقيقة<br />
                    <asp:Button  PostBackUrl="~/Settings.aspx" ID="btnSave" runat="server" Text="حفظ" OnClick="btnSave_Click" />
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
